//
// Created by Scave on 2024/9/26.
//

#ifndef TIEC_JNIUTIL_H
#define TIEC_JNIUTIL_H

#define JMETHOD(method_name) jmethod_##method_name##_
#define DEF_JMETHOD(method_name) \
  jmethodID JMETHOD(method_name);
#define INIT_JMETHOD(klass, method_name, java_name, sig) \
  this->JMETHOD(method_name) = env->GetMethodID(klass, #java_name, sig);

#endif //TIEC_JNIUTIL_H
